package csc.fresher.spring.dao;

import java.util.List;

import javax.sql.DataSource;

import csc.fresher.spring.model.User;

public interface UserDAO {

	public void setDataSource(DataSource dataSource);

	public void insertUser(String username, String password, String idcard,
			String firstname, String lastname, String phone, String email);
	
	public User getUser(String username);
	
	public boolean checkUser(String username);
	
	public List<User> listUser();
	
	public void deleteUser(String username);
	
	public void updateUser(String username);
	
	public void insertTrackUser(String username);
	
	public void deleteUserRole(String username);

	public void insertUserRole(String username);
}
